from rest_framework.serializers import ModelSerializer

from tadmin.models import AdminUser
from tadmin.models import AdminUser, Roles, Resources, RoleResource


class AdminUserSer(ModelSerializer):
    class Meta:
        model = AdminUser
        fields = '__all__'
# 序列化器
class adMinSer(ModelSerializer):
    class Meta:
        model = Roles
        fields = '__all__'

class ResourcesSer(ModelSerializer):
    class Meta:
        model = Resources
        fields = '__all__'

class RoleResourceSer(ModelSerializer):
    class Meta:
        model = RoleResource
        fields = '__all__'